#pragma once
#include <iostream>
#include <google/protobuf/service.h>
#include "string"
class MrpcController : public google::protobuf::RpcController {
public:
    void Reset();
    bool Failed() const;
    std::string ErrorText() const;
    void SetFailed(const std::string& resonse);
    
    //以下三个方法先不实现
    void StartCancel(){}
    bool IsCanceled() const{return false;}
    void NotifyOnCancel(google::protobuf::Closure* callback){}  
private:
    bool isfail = false;
    std::string fail_text;
};